import request from '@/utils/request'
export const getComments = params =>
  request({
    method: 'GET',
    url: '/v1_0/comments',
    params,
  })
export const addLike = target =>
  request({
    method: 'POST',
    url: '/v1_0/comment/likings',
    data: {
      target,
    },
  })
export const delLike = target =>
  request({
    method: 'DELETE',
    url: `/v1_0/comment/likings/${target}`,
  })
export const addComment = data =>
  request({
    method: 'POST',
    url: '/v1_0/comments',
    data,
  })
